/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-03-03
 * Time: 18:52
 */
public class Alg {
    public <T extends Comparable<T>> T findMax(T[] array){
        T max=array[0];
        for (int i = 1; i < array.length; i++) {
            if(array[i].compareTo(max)>0){
                max=array[i];
            }
        }
        return max;
    }
}
